package com.nanjia.boot.product.spec.group.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * 商品规格组表单对象
 *
 * @author 周洋
 * @since 2025-07-09 15:30
 */
@Getter
@Setter
@Schema(description = "商品规格组表单对象")
public class SpecGroupForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "规格组ID")
    private Long id;

    @Schema(description = "规格组名称(如:颜色/尺寸)")
    @NotBlank(message = "规格组名称(如:颜色/尺寸)不能为空")
    @Size(max=50, message="规格组名称(如:颜色/尺寸)长度不能超过50个字符")
    private String groupName;

    @Schema(description = "所属spuId")
    private Long spuId;


}
